package cn.com.cym.gamezao.repository.xmu;
import cn.com.cym.gamezao.base.BaseRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.redis.core.RedisHash;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import cn.com.cym.gamezao.entity.xmu.Schedule;

import java.time.LocalDate;
import java.util.List;

@RedisHash
@Repository
public interface ScheduleRepository extends BaseRepository<Schedule,Long> {

    //("from Schedule where classDate=:localDate and sendStatus =:sendStatus")
    @Query
    List<Schedule> getByClassDateAndSendStatus(LocalDate localDate,Boolean sendStatus);

    //    @Query("from DictItem  where deleted=:deleted and code=:code")
    /*@Query("from Schedule where classDate=:classDate and sendStatus=:sendStatus")
    List<Schedule> getAllByClassDateAndSendStatus(@Param("classDate") LocalDate classDate, @Param("sendStatus") Boolean sendStatus);*/
}